<%--
  Created by IntelliJ IDEA.
  User: lt
  Date: 2017/5/3
  Time: 10:02
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE HTML>
<html>
<head>
    <%@ include file="/common/include-core.jsp" %>
    <%@ include file="/common/jspTemplate.jsp" %>
    <title>分销二维码</title>
</head>
<body>
<div style="text-align: center">  <button type="button" class="btn btn-success radius" id="print"><i class="Hui-iconfont">&#xe665;</i> 打印二维码</button></div>
 <div>
     <div id="distributorList">
<c:forEach items="${distributorList}" var="item" varStatus="status">
     <div style="float: left;margin: 10px;width: 100px;height: auto;">
         <c:if test="${!empty item.sourceQRCode}">
    <img src="${item.sourceQRCode}" style="width: 100px;height: auto;"/>
         </c:if>
    <p style="text-align: center;line-height: 50px;overflow: hidden; text-overflow: ellipsis;  white-space: nowrap;">${item.name}</p>
         <p style="text-align: center;">(${item.code})</p>
     </div>
</c:forEach>
     </div>

 </div>
</body>
</html>
<script type="text/javascript" src="/static/js/distributor/printDistributorList.js"></script>